# {{ ansible_managed }}
127.0.0.1   localhost
::1         localhost ip6-localhost ip6-loopback

# The following lines are desirable for IPv6 capable hosts.
fe00::0     ip6-localnet
ff00::0     ip6-mcastprefix
ff02::1     ip6-allnodes
ff02::2     ip6-allrouters

{% for item in play_hosts|default([]) %}
{% set short_name = item.split('.') %}
{{ hostvars[item]['ansible_host'] | default(hostvars[item]['ansible_default_ipv4']['address']) }}  {{ item }} {{ short_name[0] }}
{% endfor %}
